package com.easy.frame.servers.sys.client;


import com.easy.frame.base.api.pojo.PageDTO;
import com.easy.frame.base.basic.ServiceResponse;
import com.easy.frame.servers.sys.entity.SysBusinessType;
import com.easy.frame.servers.sys.vo.SysBusinessTypeVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 品牌开放接口声明类
 *
 * @author tp
 * @date 2021/04/18 15:03
 */
@FeignClient(value = "sys", contextId = "sysBusinessTypeClient")
@RequestMapping("/sys-business")
public interface SysBusinessTypeClient {

    @PostMapping("/page")
    ServiceResponse<List<SysBusinessTypeVO>> page(@RequestBody PageDTO<SysBusinessType> param,
                                                  @RequestParam Long tenantId,
                                                  @RequestParam Integer isDisplay);

    @GetMapping("/list/type")
    ServiceResponse<List<SysBusinessType>> listAllType(@RequestParam Long tenantId);
}
